package io.zhifei.modules.sys.system.service.customer;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import io.zhifei.common.utils.PageUtils;
import io.zhifei.modules.sys.system.entity.customer.CustomerFollowEntity;
import io.zhifei.modules.sys.system.form.customer.CustomerFollowCalendarResult;
import io.zhifei.modules.sys.system.form.customer.CustomerFollowParam;
import io.zhifei.modules.sys.system.form.customer.CustomerFollowResult;

import java.util.List;

/**
 * <p>
 * 客户跟进 服务类
 * </p>
 *
 * @author duke
 * @since 2020-12-10
 */
public interface CustomerFollowService extends IService<CustomerFollowEntity> {

    /**
     * 新增
     *
     * @author duke
     * @Date 2020-12-10
     */
    void add(CustomerFollowParam param);

    /**
     * 删除
     *
     * @author duke
     * @Date 2020-12-10
     */
    void delete(CustomerFollowParam param);

    /**
     * 更新
     *
     * @author duke
     * @Date 2020-12-10
     */
    void update(CustomerFollowParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author duke
     * @Date 2020-12-10
     */
    CustomerFollowResult findBySpec(CustomerFollowParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author duke
     * @Date 2020-12-10
     */
    List<CustomerFollowResult> findListBySpec(CustomerFollowParam param);

    /**
     * 获取客户跟进的分页列表
     *
     * @param page  分页参数
     * @param param 查询参数
     * @return
     */
    PageUtils getPageList(Page page, CustomerFollowParam param);

    /**
     * 获取跟进日历列表
     *
     * @param param 查询参数，时间
     * @return
     */
    List<CustomerFollowCalendarResult> getFollowCalendarList(CustomerFollowParam param);

}
